package com.kujawnode.mapper;

import com.kujawnode.commons.DataScope;
import com.kujawnode.model.TActivity;
import com.kujawnode.model.TActivityVO;
import com.kujawnode.query.ActivityQuery;
import com.kujawnode.query.BaseQuery;

import java.util.List;

public interface TActivityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TActivity record);

    int insertSelective(TActivity record);

    TActivity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TActivity record);

    int updateByPrimaryKey(TActivity record);

    @DataScope(tableField = "owner_id", tableAlias = "ta")
    List<TActivityVO> selectActivityByPage(ActivityQuery query);
}